From 90d908da5d855d8b3071a52720bb91f863003a02 Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Tue, 14 Oct 2025 22:36:16 +0200 Subject: [PATCH] shellDBus: Send an activation token for Accelerator(De)Activated This will be useful for the global shortcuts portal implementation. Part-of: (cherry picked from commit d0e8dc2b66f324f6d6526c5cd333c19359047a0a) --- js/ui/shellDBus.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 9b91c7fb4..3c6bc3fff 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -286,9 +286,14 @@ export class GnomeShell { let connection = this._dbusImpl.get_connection(); let info = this._dbusImpl.get_info(); + + const context = global.create_app_launch_context(0, -1); + const token = context.get_startup_notify_id(null, []); + let params = { 'timestamp': GLib.Variant.new('u', timestamp), 'action-mode': GLib.Variant.new('u', Main.actionMode), + 'activation-token': GLib.Variant.new('s', token), }; let deviceNode = device.get_device_node(); -- 2.39.5